#!/bin/bash

awk '{print NR, $0}' $1 | while read -r index content; do
    dsub -n $2_$index -q $3 -R $4 -o $2_$index.%J.out $content
done
